<template>
	<div id="parent">
		<buttonbar name ="parentMsg" @listenToChildEvent="showChild"></buttonbar>
	</div>
</template>

<script>
	import Buttonbar from "../components/buttonBar.vue";
	export default {
		name: 'parent',
		data() {
			return {
				parentMsg: "我不11好11"
			}
		},
		components: {
			Buttonbar
		},
		methods: {
			showChild: function(e) {
				console.log(e);
			}
		},
	}
</script>

<style>
	
</style>